<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/PhpstormProjects/student_manage/Public/css/bg.css" rel="stylesheet">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="/PhpstormProjects/student_manage/Public/js/admin/user/gt.js"></script>
    <script src="/PhpstormProjects/student_manage/Public/js/admin/user/register.js"></script>
    <title>注册</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4">
        </div>
        <div class="col-md-4" style="opacity: 0.85">
            <div class="alert alert-warning" style="<?php echo ($result["warningStyle"]); ?>" id="warning"><?php echo ($result["warningInfo"]); ?></div>
            <div class="panel panel-default" id="form">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        用户注册
                    </h3>
                </div>
                <div class="panel-body">
                    <form role="form" action="register" method="post" id="data">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" placeholder="请输入用户名 (5-15位)" id="username" name="username" maxlength="15">
                            <span class="help-block" id="usernameHelpBlock"></span>
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control password" placeholder="请输入密码 (5-15位)" id="password" name="password" maxlength="15">
                            <div class="password-meter">
                                <div class="password-meter-message"> </div>
                                <div class="password-meter-bg">
                                    <div class="password-meter-bar"></div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="passwordConfirm">再次输入密码</label>
                            <input type="password" class="form-control" placeholder="请再次输入密码" id="passwordConfirm" maxlength="15">
                            <span class="help-block" id="passwordConfirmHelpBlock"></span>
                        </div>
                        <div class="form-group" id="captcha-box"></div>
                        <div class="input-group">
                            <a class="form-control btn btn-default" id="registerBtn">注册</a>
                            <span class="help-block" id="registerHelpBlock" style="color: red;display: none;">请验证</span>
                        </div>
                    </form>
                </div>
                <div class="panel-footer">
                    <a href="<?php echo ($result["loginUrl"]); ?>" style="color: #0e90d2">已有密码?点击登录</a>
                </div>
            </div>
        </div>
        <div class="col-md-4">
        </div>
    </div>
</div>
</body>
</html>
<script>
    $(document).ready(function () {
        document.getElementById('form').style = 'position:relative; top: ' + ((screen.availHeight - 500) / 2) + 'px';
    });
</script>